#!/usr/bin/python3
import logging

def use_logging(x):
    def wrapper(*args,**kwargs):
        logging.warn("%s is running " %x.__name__)
        return x(*args)
    return wrapper

@use_logging
def bar():
    print("i am bar")

@use_logging
def foo():
    print('i am foo')
bar()
foo()